package com.wbcs.config.template.tags;

import com.wbcs.system.ReportRequest;
import com.wbcs.system.assistant.TagAssistant;
import com.wbcs.system.component.AbsComponentType;
import com.wbcs.util.Consts_Private;


public class SHeaderTag extends AbsTagInTemplate
{

    public SHeaderTag(AbsTagInTemplate parentTag)
    {
        super(parentTag);
    }

    @Override
	public String getTagname()
    {
        return Consts_Private.TAGNAME_HEADER;
    }

    @Override
	public String getDisplayValue(ReportRequest rrequest,AbsComponentType ownerComponentObj)
    {
        AbsComponentType displayComponentObj=this.getDisplayComponentObj(rrequest);
        if(displayComponentObj==null) displayComponentObj=ownerComponentObj;
        String top=null;
        if(this.mTagAttributes!=null)
        {
            top=this.mTagAttributes.get("top");
        }
        return TagAssistant.getInstance().getHeaderFooterDisplayValue(displayComponentObj,top,true);
    }
}

